<?php
require_once "../connection.php";

	$sql = 'UPDATE proposition SET hired="yes" WHERE id=?';
	$sth = $db->prepare($sql);
	$res = $sth->execute (array ($_POST['pid']));
	if ($res==1) {
	  echo json_encode (array ('ok'=>'OK'));
    }
?>